import request from '@/utils/request'

// 查询择偶标准表列表
export function listRequire(query) {
  return request({
    url: '/wx/require/list',
    method: 'get',
    params: query
  })
}

// 查询择偶标准表详细
export function getRequire(wxUserId) {
  return request({
    url: '/wx/require/' + wxUserId,
    method: 'get'
  })
}

// 新增择偶标准表
export function addRequire(data) {
  return request({
    url: '/wx/require',
    method: 'post',
    data: data
  })
}

// 修改择偶标准表
export function updateRequire(data) {
  return request({
    url: '/wx/require',
    method: 'put',
    data: data
  })
}

// 删除择偶标准表
export function delRequire(wxUserId) {
  return request({
    url: '/wx/require/' + wxUserId,
    method: 'delete'
  })
}

// 导出择偶标准表
export function exportRequire(query) {
  return request({
    url: '/wx/require/export',
    method: 'get',
    params: query
  })
}